package com.defysoft.waukidsschool;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class Sqlite_OpenHelper extends SQLiteOpenHelper{
	String sql;
	public Sqlite_OpenHelper(Context context, String name,
			CursorFactory factory, int version) {
		super(context, name, factory, version);
	
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		sql = "create table SCHOOL(" +
				"PK_School_Code datetime, Data_School_Code VARCHAR(10),School_Type int)";//에러일경우타입1
		db.execSQL(sql);
		
		
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		
		
	}

}
